package com.qs.core.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the gen_zip_mst database table.
 * 
 */
@Entity
@Table(name="gen_zip_mst")
public class GenZipMst implements Serializable {
	private static final long serialVersionUID = 1L;
	private String zipNumber;
	private String createdBy;
	private Date createdDt;
	private String updatedBy;
	private Date updatedDt;
	private GenStateMst genStateMst;
	private GenCityMst genCityMst;

    public GenZipMst() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ZIP_NUMBER")
	public String getZipNumber() {
		return this.zipNumber;
	}

	public void setZipNumber(String zipNumber) {
		this.zipNumber = zipNumber;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to GenStateMst
    @ManyToOne
	@JoinColumn(name="STATE_ID")
	public GenStateMst getGenStateMst() {
		return this.genStateMst;
	}

	public void setGenStateMst(GenStateMst genStateMst) {
		this.genStateMst = genStateMst;
	}
	

	//bi-directional many-to-one association to GenCityMst
    @ManyToOne
	@JoinColumn(name="CITY_ID")
	public GenCityMst getGenCityMst() {
		return this.genCityMst;
	}

	public void setGenCityMst(GenCityMst genCityMst) {
		this.genCityMst = genCityMst;
	}
	
}